package com.xyz.rok.tools.service;

import com.xyz.rok.tools.model.MemberStat;
import com.xyz.rok.tools.model.dto.StatDto;
import com.xyz.rok.tools.model.request.StatRequest;

import java.util.List;

public interface MemberStatService {


    int deleteByPrimaryKey(Long id);

    int insert(MemberStat record);

    int insertSelective(MemberStat record);

    MemberStat selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MemberStat record);

    int updateByPrimaryKey(MemberStat record);

    int insertOrUpdate(StatRequest memberStatRequest);

    List<String> getFinishedNames(StatRequest memberStatRequest);

    List<StatDto> getMemberStatRangeDate(Long unionId, Integer beginDate, Integer endDate);

    List<StatDto> getMemberStatDate(Long unionId, Integer server, Integer day, String orderBy);

    List<Integer> getHasDataDay(Long unionId, Integer server);

    List<StatDto> getMemberStatCompare(Long unionId, Integer server, Integer beginDate, Integer endDate, String orderBy);

    List<StatDto> getMemberDKPCompare(Long unionId, Integer server, Integer beginDate, Integer endDate, Integer t4Kill, Integer t5Kill, Integer death);

    List<StatDto> selectMemberStatDownloadByDay(Long unionId, Integer server, Integer day);
}
